package cn.yunhe.process.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.entity.TProcess;
import cn.yunhe.entity.TProcessExample;
import cn.yunhe.mapper.TProcessMapper;
import cn.yunhe.process.service.StartProcess;
@Service
public class StartProcessImpl implements StartProcess {
	@Autowired 
	private TProcessMapper tProcessMapper;
	
	
	public List<TProcess> selectByExample() {
		// TODO Auto-generated method stub
		/*TProcessExample te=new TProcessExample();
		te.createCriteria();*/
		return tProcessMapper.selectByExample(null);
	}


	@Override
	public List<TProcess> selectByExample2(Integer userId,Integer projectid,Integer processid) {
		// TODO Auto-generated method stub
		return tProcessMapper.selectByExample2(userId,projectid,processid);
	}

}
